import Cookie from "js-cookie";

const TokenKey = "Admin-Token";

export function getToken() {
	return Cookie.get(TokenKey);
}

export function setToken(Token) {
	return Cookie.set(TokenKey, Token);
}

export function removeToken() {
	return Cookie.remove(TokenKey);
}

export function getUsername() {
	return Cookie.get("username");
}

export function setUsername(username) {
	return Cookie.set("username", username);
}
